﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using SES.CMS.BL;
using SES.CMS.DO;

namespace SES.CMS
{
    public partial class AlbumDetai : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = 0;
            if (Request.QueryString["ID"] != null)
            {
                id = int.Parse(Request.QueryString["ID"].ToString());
                cmsImagesDO obj = new cmsImagesBL().Select(new cmsImagesDO { ImageID = id });
                lbl.Text = "<div class='youtube'><iframe src='http://www.youtube.com/embed/" + obj.ImgFile + "' width='577px' height='346px' style='margin:0px 0px 10px 0px;' frameborder='0' allowfullscreen></iframe></div>";
                rpt.DataSource = new cmsImagesBL().SelectByImageID(id,1);
                rpt.DataBind();
                if (Session["lang"].ToString() == "VN")
                {
                    Page.Title = obj.Title;
                    lblDescription.Text = obj.Description;
                }
                else
                {
                    Page.Title = obj.eTitle;
                    lblDescription.Text = obj.eDescription;
                }
                string cururl = "http://" + Request.Url.Host + Request.Url.AbsolutePath;
                fbcm.Attributes.Add("data-href", cururl);
            }
        }
        public string Change_AV(string ip_str_change)
        {
            return Ultility.Change_AV(ip_str_change);
        }
    }
}
